Fleshing out login controller, need to write unit tests