Bug fix on registration page