completed the forwarding friendly implementation by implementing the redirect_back_or method