I am using ‘checkout login’ module that adds an inline login form to the account information checkout pane. None of the anonymous users have to activate their accounts to complete the check out or payment process, which is all I want. However, as the pay pal redirects users back to my site and the users try to access the order (order history) page,. the following message appears: ‘You are not authorized to access this page’.

Is there a way I can re-direct users to log in page when they try to access the order page, rather than the above message (You are not authorized to access this page) appearing?

In short, I want my users to be redirected to log in page when they try to access order (order history) page, but not when they try to checkout.

If not possible, can I just edit the message (You are not authorized to access this page) for order page, so that I can add a link to log in page.