fixes no user in databse error