Login

* Server side logic
* Client side xhr logic