modified register.html and reformatted code