added client side validation with flash_render