changes to the way athentication works so it supports direct authentication (i.e. without the use of decorators)