geting data from json and testing log in