Fix user name input style when query result is not none.