session controller profile conditional clauses