Add body parsing on login handler

Now uses the json unmarshalling to get values out of form