I\'m throwing more than one error in a function
function checkToken{ if there is no token ==> throw error1 if there is token but not valid ==> throw2 <