change auth method validation error message to a maintainable one