forgot the return statement on redirect condition