Login model test

- Test validation inputs
- Extract method to reduce dependency