Because the Dojo password element does not allow to be focussed, selected or programmatically put a default value in it, it will not work. The cookie management must be done completely from the client side, not the serverside.
Secure login looks up forms in the HTML code and looks up form elements where a username and password inputboxes may be stored. This control does not create a form, it uses Ajax and Dojo with dynamic elements to process the login, so Secure Login will not work I think.