ok, i did something like this:
<form action="/wps/<wps:if loggedIn="yes">my</wps:if>portal/SearchResults" method="post">

and it seems to work