User validation for a couple of endpoints.