added json serialization to the user data TO. Added test to attempt login status.