def get_email(): return session.get('email', None)
def is_admin(): return session.get('privilege', 0) >= config.ADMIN_LEVEL
def get_name(): return session.get('name', None)
def is_logged_in(): return session.get('logged_in', False)