changed field type to email for free validation
changed function order