added logged_in? method in questions controller to see if a user is logged in