Add validation for add button