user class vastly changed so that insert now works correctly. App should run without errors, problem now is that the user cannot login.