changes to index page to ensure validation rules are met before any requests are sent
changes made to ensure validation is met before any requests are sent