Set auto play true

Set autoplay to true and add hack for cases where username and password did not get set in time