login update preference table working