name is required
fix flash and error messages