JSON Response method added for signup and login