get rid of error in console that throws whenever there is no user logged in