Fixed null pointer on login