fixes for jquery validation