framework for validating forms
made calls synchronous
no need for delay function
more robust controls