fixed uploads, added email validation