Implemented base_auth template