added check for the username to be shorter than 30 characters