doesn't the checkUsername function take care of this?