Added login model, better errors gem, and removed coffeescript