Fixing problems registering users