Add login and error routes