Added more detailed exception feedback after SQL failure.
Updated login tests, work in progress still.