handled the null exception on signIn