Login is not being displayed twice, but you've the login module displaying what seams to be on all pages. On login failure the user is sent to the login page, so it appears if you have login module on all pages that there's two logins. Am not aware of a workaround, sorry; doesn't seam to be an issue.