adding user model with validation and tests
Add password validation to user model