this may handle errors with login