Simple validate function for userdto