Add example login code

Includes model, view, and unit testing