Fixed pagination bug in access log view.
Upon login & logout, logged flag is set.

When user logs in, the logged flag in users table is set to 1, the updated_at column is
set to current time. The same happens upon login out.