add auth validation in detail to show buttons