Pop-up windows added, program now checks if user is logged in