Add a timeout to the login