popup & validation