refactoring in userModel: use of setValidationField function
#Issue63
setValidationField function in setName
#Issue63