creating login logout