How are you redirecting them to the login page in the first place? You may need to add the url parameter accesscheck=[pagename] when sending them to the login page in the first place.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.