GREAT !! I have been searching days and days for such a solution, thank you. 
I just changed the redirection to
wp_redirect( site_url('my-account/') )
So users are redirected on the "My-Account" page if not logged in or registered. :)