Ask for user login first.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>
Create Timer intance when necessary and close its thread properly.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>