Added module controller
Added: check if the user is an admin for certain pages
Changed file mode for the logs directory