created a directive and added some script tags to show email validation