Using jquery ajax for updating the user password