Fix Order copy from Niels.
Merge pull request #318 from gannetson/login-fixes

Fix login bugs
Facebook login