first iteration of authenticate() class