Dialogn and input validations