Added new verification, that force the change of the url to production
mode when the user aren't authorized.