Added access check in title creation function