Adds log_out method