In login tool focus is possible by this code:
loginBox.FindControl("UserName").Focus();
But as far as I know it is not possible to clean UserName text. iI cannot be cleared like traditional methods. Similarly, most websites keep username but clean password field even user supplied wrong information.
You should change the "UserName" textbox attributes from the code to normal textbox attributes.