ticket:5 added login logout ability and corresponding pages