require error
routes is spelt routes
correctly segregated user functions from actions