Have the login iframe target the iframe so that if there's errors they will be shown in the iframe.