home page is modified to validate input fields