add logged_in? func as helper method