Remove double downcase in the authenticate method.