fix pattern match on user registration