-implememted validation check with alert message if no roles checked