-adding check for database pollution in user auth middleware