redirects from front page if user is logged