[identity] add helper functions for validating add/remove username messages
Summary:
validate the message and return the username to be added/removed
Depends on D8232
Test Plan: tested in subsequent diff where helper functions are called
Reviewers: jon, bartek
Reviewed By: bartek
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D8233