fixed error with not having logged in