Ajax form validation and CRUD implementation