FormController added, JavaScript validation corrected