better error handling when user by id is not found