Added smart login (for bar).