Updated user update to manually handle username validation