Partial implementation of the login popup.