Added server-side username validation.