Update authentication to use Rail's authenticate method