Ajax based form validation tool