CONDITIONAL PROBLEM: Conditions to Redirect to Url is not working