Fixed the code for signing in.