implement the login popup