Added the log_out function