Add login view and correct errors