Security middleware working as expected..