add timeout for login
merge with add timeout for login logic