Added email validation using email type attribute