refactored pinsFiltering in datastore as well as checking login in pins.py
Removed bad assertion tests, fixed type checking for pins error