Added log in with JSON