register email is almost ready, some minor bugs