update login_required to support check_auth
Merge pull request #1 from zghember/master

update login_required to support check_auth