Added check for values in register.html