fixing bad login error