Added find_by_code class method, session controller case statement.