Fixed problem where not entering a password for the login would throw a value error