made User class JSON serializable