filter to verify if the user is logged in

Signed-off-by: rpinzon <rpinzon@gmail.com>