session is regiered properly