Change if/else to on/do/end in company and guest routes.