activation flag check during login