Added REMOTE_HOST to login procedure to protect against MitM attacks