There was a space in between the code and deleted it, now it works. thx for that.
There is also a pages.php in admin folder, which doesn't have an access check - Im just trying to secure files from direct access. Please can you help with the pages.php page - how to add access rules.