Removed variable in login loop

Added a break statement to the login loop to replace checking if the variable 'Trying' is True or False.