Creating a schemas to validate serialize and deserialize users