Added validations and inactive button