abstracted signup/signin forms, abstracted the register_validator.js file