fixed alert box close control
added validation for product form (and tests)