updated router to have a require statement for the user view