fix state check on username message