Fix for register to return the user