Check session in controler