Added post input to login
Improved post code, and fixed some routing.