added account validation