Fixing the login state bug and error reporting on signup