Added logged_in() function to auto model.
Replaced '/' with DIRECTORY_SEPARATOR;
Added field name quote function.