Fixing emails, password generation