second stage of the 'edit profile' working with ajax