adding login error when wrong credentials are used