added check to see if user is logged in befor echecking if he is an admin
created htaccess and 404 page