displaying error if bad token