fixed small bugs with errors when user wasnt logged in