created an "autofocus" directive for the login panel.