made auth global; added log_out task