change to User::loginRequired

Allow the ```returnUrl``` to be set on ajax requests.


I have a page that will show a voucher code via ajax if the user clicks a link.
Codes can only be requested by logged in users.

If the user isn't logged in the ajax request will redirect to the login page but won't redirect back to the voucher page.