Show user information if user is signed in.
Reorganized code.
Added function to get int from connection result.
Save user information on signed in.
Removed unused loggings.
Fixed bug while looping json objects.