Added on login hook to set user online