Working version of Header based Authentication