fixed error if user has not signed in yet.