Add error messages when required fields are not filled in