new period validation by js