Fixing the user not getting registered error