added mock profile controller using sessions