fix a bug in registration page