added null check for user and token
added null check for user and token

N4SJAMK/teamboard-client-react,N4SJAMK/teamboard-client-react,nikolauska/teamboard-client-react,tanelih/teamboard-client-react,AatuPitkanen/teamboard-client-react,melonmanchan/teamboard-client-react,JanKuukkanen/teamboard-client-react,santtusulander/teamboard-client-react,nikolauska/teamboard-client-react,JanKuukkanen/teamboard-client-react,AatuPitkanen/teamboard-client-react,santtusulander/teamboard-client-react,melonmanchan/teamboard-client-react,tanelih/teamboard-client-react