register ajax loaded form validation bug fix