adds username validation on model level