fixed sending of heartbeats as soon as a user logs in