fix. if user does not exist, return error