Added a feature to handle input errors and installed rack-flash gem