Add view function register and the url mapping for the register function.