refactored GetUserById method to return error with response at all times
changed the GetUserById method signature