Undebugged fixing and adding emails, fixed bugs with session saving