More bug fixes with autogenerated rspec tests for user auth.