fix bugs on registration page