Some login/auth handling. Not yet complete
Forgot to add add.ctp