Added a json model and implemented first ajax rpc call in sign in