Fixed a Service-Crashing Bug in the Login Code (null pointer when invalid login)