fixing server registration page cancel & submit action