fixed null pointer in login