fixed bug when json is empty
made refresh button and passwordfield working