generic account validation for endpoints.