Added comments for readability, added username_length check
Added inline comments to improve readability.

Added a length check when searching for usernames so the check does not
stop for "prefix" usernames (e.g. "john" and "johhny")