fixed login error with duplicate error