Update base.py

Made changes to the requires_auth() method. Made changes to the check_auth() method.