removed some debugging code in form validation function of controller code