Fixed registerUser bug during install