removed group_id from user table , needed changes to functions to work properly. Submitted changes.