add get_id helper function
use login_manager for authentication checking