fixed application_controller helper method checked_in? to check nil state for session[:user_id]