init. Validates required fields