user or email validation directive