Only register checkins for local logins.

Expand the log_in function with a new parameter for registering checkins.
By checking if the user is logged in as root, we know wheter he is connected
remotely or locally.