Hi Thilina,
In the master branch, if you add a user without specifying a host, an invalid ajax response is generated. This causes a bug, where you cannot stright away delete that user without refreshing the page (and in the displayed table the host part is missing). I don't know how the mechanism for adding users works, but the attached patch fixed the issue for me.
Bye, Rouslan