form validations and home page