Added if file_exists for guide and register