Simplified authenticate function