Bug fix in user register