BUGFIX: Updated login logic to prevent incomplete logins going through.