login and application focus