jQuery UI - Modal Dialog problems

jQuery UI - Modal Dialog problems

Hi

Can some one please help me in solving this problem

I created a modal dialog box with

$("#user-dialog").dialog({
        autoOpen:false,
        bgiframe: true,
        height: 450,
        width: 375,
        modal: true,                   
        draggable:false,
        resizable:false
});

which will open up when a button "enter details" is clicked with some input text fields to enter and has two buttons "create" and "cancel"

so when the user enters the details and click on cancel or create it is working fine for the first time but when the user clicks on the "enter details" second time it opens the dialog but it is not allowing me to enter any values into the text fields.

If i refresh the page then it is allowing me to enter the values  or if i remove the modal:true option it is working fine

Please help me in this issue.

Thanks
Kumar