Fixed a bug which would prevent the user from being able to sign in.