Add Simple JS validation logic