Add function checkUser in updating profile