added function to specify attributes to hash dynamically to the authenticationTrait with tests on the traitConcrete class