adding a directive for the login popup

experimental