fixed dialog pop up for security, terminates if wrong credentials