- added user validation
- tested for validation