Tweaked login state machine logging, added email validation