modal validation corrections