user is redirected to the same page after registration and update profile