error styling and validation