Fixed authentication null pointer issue, #16 now closed