Added new features for the fields that use arrays in the User schema and added tests for them.