adding validations to user model and UT
adding update REST method and UT