switch to ORM for basic login
initial controler changes for login