Adding some data checks on the front and and backend. The backend should die gracefully if parameters are missing.