email validation added to form in javascript