Fix errors and add error styling