Ensure username is not null before inserting.