changed checking of redirecting page implementation from form valid to get success url