Added REMOTE_HOST to saved login file procedure to protect against MitM attacks