added ajax for user register page