Updated the login procedure to send the user to the my accounts page if they were not redirected to the login back from a secured page.