Redirect to Dashboard when an error happens an apply page.