Deal with dynamic field type for password