Refined updateUser method to allow updating of username