check for invalid username on adding and editing connections
check for invalid usernames in api methods