Fix for authenticate route