fix minor bugs on registration page