sign in failure correctly returns errors