Improved code of custom authentication provider cookbook article
Removed extra spaces on is_dir check
Modified return statement place
Merge pull request #2614 from FlyersWeb/improving_custom_authentication_provider

Improved code of custom authentication provider cookbook article