- refactor username validation
- refactor password validation