Refactored OpenMRS authenticator return authentication object. Added more logging