Added validation and error styling