created index logic (logged in or not), added current_user/logged_in? helper methods