JS form validation for edit.jsp