Work on login model and controller

This version appears complete and is syntactically correct. Logic ma
still be off, it has not been tested.