Fixed registration validation and encoding of fields (eg password can now contain <>&)