Enable Username Field for chat

You should move your code after this line. The check on user_id is important for your code.