Add body parsing on login handler

Now uses the json unmarshalling to get values out of form
Merge pull request #2 from joekarl/master

Add body parsing on login handler