correct json messages now
restored the json error for login, solved weird cookie problem
some minor fixes
Merge pull request #1 from InfinityPenguin/helen

Helen