added error messages for incomplete fields