remove extra files
validate the uniqueness of email