Login method converting to JsonString