added commented code to redirect user to home page if he's not allowed to enter the module