visitor can register [finish #79854006 #79854478]

Refactor this if to something similar :)