collapse document model before_validation callbacks
implement admin logout