Fixed a bug in parameters for submitHandler
Added preSubmitHandler