Added username validation feature.