Build main login page.

Fix POST request method not building.
Add error parameter to the basic serialization response.