Made popup dynamically load login/logout form