sorted focus issue after login