exercise4 empty valdation added