Enabled validation and AJAX for training