File uploader working, and email validation in JS