added exceptions checks to managegroups and add group pages fixed issue #48