refactored warning message generation
working auth link