Add email validator and fix filefield