Updated the register and login pages with JS validated forms