Added username validation.