made contrib.auth.decorators work for both CBV and FBV

fix to make loginrequired work

remove unecessary if check