setted up unit tests
added validation to user model