redesigned register.html, added script.js for validy checking