Update to authorization and added Rack::Flash