remove the alert and fix some bugs in registration module