Move user active method into helper as it will be needed elsewhere.