More authentication stuff including a type for the JSON result and the post call.