Added popups to login and logout