Custom validation

Can I use a custom validation of user data when adding a user through the API: email, login?

Thank You.