login fix

login now has some basic functionality. Allows the user in with the
correct credentials. Need to work on error messages for all the pages,
and a revamp of the controller because it's getting messy.