Finally added functionality for the case when only the groups must be updated (if old password input is empty)