Form error management and field validation