Checks for user logged in and redirects visitors to a directory "/maintenance"