added tests
added validation for user representation
removed not null check as it was unneccessary
added UserResource put method and tests