placing check_auth as a static method on EnvAuth
implemented envvar check in check_auth