ajax validation fixed for registration