add class object, validating login from JSon response