Validate user on API get requests.