Custom directive for a user validation