add js/validator to non-index.php pages to clean login register inputs