fix error with set cookie on login
Merge pull request #28 from poseyj/master

fix error with set cookie on login