Updated with Rack-Flash gem to handle input errors with incorrect passwords