work on modal validation