Added username-field sanity check