Code cleaning, loop for login password