Register and sign in

added json converter for better serialization