preparing login for pop-over