More bugfixes registering users (properly setting user id from db seq)