changed authentication class to credentialModel class