Added email validation to file upload