add validation (disable submit button when validation failed