Added to check the input purpose for gnome-shell password dialog.