adds course view page and redirects if user already logged in feature added