Fixed bug that prevented us from accessing database columns by name
Allowed pages to access currently logged in user