Adding admin and user filters
adding errorcheck.js