add checkifduplicatedusername & checkconfirmpwd js functions for register page