minor fix for register user