Login Model Redirecting to index page in it's body

Hello ,
I am Using Login Model , I have a problem when I try to login from model … it’s Redirected to the page in the model body not refresh the page
How can i solve this issue ?
Thanx

Note that … it’s not Always do that only some time

You may enable debug to see the error message in more detail.

Check HTTP response also. If there is server side error, the response will be incorrect and the script cannot redirect by refreshing the page.

Yep , iI found an error from my end , Thnx

You may then post the error message for more discussion.