added in test for error on direct login