Register email and password validation.