added field types; error messages style changed