Added check for username length when sending/receiving a login message