added debug output for user profile updating