Used bean validation to validate email address