Why is my application hangs at Please wait and not completing the submission?