Redirects user to quiz or to result according to his state