replaced username with email in createSession
Merge pull request #1008 from AlanRosenthal/username_to_email

replaced username with email in createSession