Fix app.user check