fixed critical error with not checking for sign in