Added data-attributes
Added switch for type-changething
Added action to form
Now with email-validation